/**
* AutoSWF - Cody Cushing. March 26, 2009
* Copyright (c) 2009 Cody Cushing
* No use restrictions. Maintain this notice in all versions. 
**/

package com.autoswf.taskrunner
{
	import com.anywebcam.mock.Mock;
	
	public class MockTaskModel extends TaskModel
	{
		public var mock:Mock = new Mock(this);
		
		public function MockTaskModel()
		{
			super(new MockTaskRunner());
		}
		
		override public function addTask(task:IRequest):void
		{
			mock.addLoadTask(task);
		}

		override protected function taskRunner_completeHandler(event:TaskEvent):void
		{
			mock.loadManager_dataReadyHandler(event);
		}
		
		override protected function taskRunner_failureHandler(event:TaskEvent):void
		{
			mock.loadManager_loadFailedHandler(event);
		}
	}
}